package com.zjf.carpark.entities;

/**
 * @description:车辆信息
 * @author: 张建飞
 * @createDate: 2019/12/20
 * @version: 1.0
 */
public class Car {
    private Integer carId;//汽车Id
    private String carNum;//车牌号
    private String carBrand;//汽车品牌
    private Boolean deleteState;//是否可用
    private Integer ownerId;//所属车主Id
    private Owner owner;

    public Car() {
    }

    public Car(Integer carId, String carNum, String carBrand, Boolean deleteState, Integer ownerId, Owner owner) {
        this.carId = carId;
        this.carNum = carNum;
        this.carBrand = carBrand;
        this.deleteState = deleteState;
        this.ownerId = ownerId;
        this.owner = owner;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }

    public Boolean getDeleteState() {
        return deleteState;
    }

    public void setDeleteState(Boolean deleteState) {
        this.deleteState = deleteState;
    }

    public Integer getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(Integer ownerId) {
        this.ownerId = ownerId;
    }

    public Owner getOwner() {
        return owner;
    }

    public void setOwner(Owner owner) {
        this.owner = owner;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carId=" + carId +
                ", carNum='" + carNum + '\'' +
                ", carBrand='" + carBrand + '\'' +
                ", deleteState=" + deleteState +
                ", ownerId=" + ownerId +
                ", owner=" + owner +
                '}';
    }
}
